package simpleness;

import org.junit.Test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * HJ4 字符串分隔
 *
 * @author sdm
 * @version 1.0
 * @date 2023/3/27 10:31
 */
public class HJ4 {

    @Test
    public void my() throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        // 读取第一行
        String s = in.readLine().toString();

        if(s.length() > 8){
            for(int i = 0; i < s.length(); i = i + 8){  // 0-7 8-15
                System.out.println(s.substring(i,i+8));  // [a,b)
            }
            int rem = s.length() % 8;
            if( rem != 0){
                String remStr = s.substring(s.length()-rem, s.length());
                System.out.println(joint(remStr,rem));
            }
        }else{
            System.out.println(joint(s,s.length()));
        }
}

    private static String joint(String s, int len){
        int count = 8 - len;
        for(int i = 0; i < count; i++){
            s = s + "0";
        }
        return s;
    }


}
